Skip to content

Expose badge and ex_flag; psxdata 1.5.0; release 0.8.0 - #21

Merged
mtauha merged 1 commit into
mainfrom
chore/psxdata-1.5.0
Nov 13, 2026
Merged

mtauha merged 1 commit into
mainfrom
chore/psxdata-1.5.0

Conversation

@mtauha

@mtauha mtauha commented Nov 13, 2026

Copy link
Copy Markdown
Member

Upgrades to psxdata 1.5.0 (GitHub archive) and releases 0.8.0.

Added: badge and ex_flag on /screener rows, /stocks/{symbol}/quote and /indices/{name} constituents.

  • ex_flag is the corporate-action badge PSX shows next to a ticker (XD ex-dividend, XB ex-bonus, XR ex-rights), or null.
  • badge is any badge (e.g. NC).
  • Both carry OpenAPI descriptions.

Index router: it now builds rows from an object-dtype frame, so nullable string <NA> becomes null.

Tests:

  • New tests for the index constituents, screener and quote.
  • test_proxy.py seeds a 1.5.0-shaped snapshot, since 1.5.0 refetches older ones.
  • 239 passed; ruff check api/ and mypy api clean.

After merge: GitHub release v0.8.0 (FastAPI Cloud deploy + Docker Hub).

psxdata 1.5.0 returns PSX's ticker badge beside the ticker. Add badge and
ex_flag to ScreenerRow, QuoteData and IndexConstituentRow (the index
router now maps nullable strings to null). The proxy cache test seeds a
1.5.0-shaped snapshot, since older ones are refetched.
@mtauha
mtauha merged commit b753514 into main Nov 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant